<div>
    <?php if(!isset($this->erros)): ?>
        <?= $this->form ?>
    <?php else: ?>
    <a href="<?=$this->url( array('controller'=>'consulta','action'=>'index') )?>"> Voltar</a>
    <?php endif; ?>
</div>
